package com.dhj.jvmstudy.chapter11;

import java.util.Date;

/**
 * 指令6 操作数栈管理指令
 */
public class StackOperateTest {

    public void print(){
        Object obj = new Object();
        String info = obj.toString();
    }

    public void print2(){
        new Date();
    }


    public void foo(){
        bar();
    }
    public long bar(){
        return 0;
    }

    public long nextIndex(){
        String abc = "";
        if(index!=23){
            System.out.println(123);
        }
        return index++;
    }

    private long index = 0;
}
